package com.wanxi.util;

import com.wanxi.model.Student;

import java.util.ArrayList;
import java.util.List;

public class MyString {
    public static void main(String[] args) {
        String aa = "aaa";
//        aa = "bbb";
//        System.out.println(aa);
        String bb = new String();
//        bb = "bbb";
        String cc = new String("aaa");
//        char[] chars = new char[]{'a', 'b', 'c'};
        String dd = new String(new char[]{'a', 'A', 'a'});
        System.out.println(aa == bb);
        System.out.println(aa == cc);
        System.out.println(aa == dd);
        System.out.println(cc == dd);
        String ee = cc;
        System.out.println(ee == cc);
        Student student = new Student();
        String ff = student.toString();
        System.out.println("---------------------");
//        byte gg=1;
//        byte hh=byte(gg+1);
//        byte jj=1+1;
        System.out.println(cc.equals(dd));

        System.out.println(cc.equalsIgnoreCase(dd));
        String [] arr={};
//        arr.length
        List<String> list=new ArrayList<>();

    }
}
